README file for "Larger Legislatures and the Cost of Political Brokerage: Evidence from Brazil"
Authors: Anderson Frey <anderson.frey@rochester.edu>

**** OPERATING SYSTEM ****
Microsoft Windows 10 Pro, version 10.0.18363

**** SOFTWARE ****
Results are replicable using R (version 4.1.2), and R studio (v. 1.4.1103).
Rpackages used: data.table, dplyr, rdrobust, lmtest, ggplot2, AER, gridExtra, sandwich, dummies, stringr, foreign, arcdiagram 


Please set your working directory as the one in which this folder appears. 
to set the path type into R: setwd("PATH_NAME") 


**********************
TABLE OF CONTENTS
**********************

DATA FILES FOR PRODUCING FIGURES AND TABLES

	1. data_main.csv: 		main dataset used to produce most tables and figures in both the paper and the appendix -- observations are at the municipality level.
	2. data_old.csv: 	        dataset used to produce Table A.7 in the appendix -- observations are at the municipality level.
	3. data_elec2010.csv		dataset used to produce Figure 1a. Observations are also at the municipality level.
	4. data_coal2012.csv		dataset used to produce Figure 1a. Observations are also at the municipality-party level.
	5. 54861031Brazil LAPOP AmericasBarometer 2012 Rev1_W.DTA (NOT INCLUDED)
	   This file is required for the replication of Figure 8. Due to copyright rules, it needs to be obtained from the LAPOP website:
           http://datasets.americasbarometer.org/database/index.php?freeUser=true
           file name: 54861031Brazil LAPOP AmericasBarometer 2012 Rev1_W.DTA
           Please rename the file: Brazil_LAPOP_2012.dta
           The replication can be conducted once the file is copied to the directory

		
R SCRIPT FILES 

	1. R_Article:    	Runs all tables and figures in the article. 
	2. R_Appendix:    	Runs all tables and figures in the online appendix.

	
Codebook

	Codebook.pdf: Includes the description of all variables in the data files listed in item 1, and their respective sources.
